<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<PoserLoot.Web.Models.Comment>>" %>
<ul>
    <% foreach (var item in Model)
       { %>
    <li>
        <%=Html.ActionLink("[Edit]", "Edit", "Comment", new { id = item.CommentId }, null) %>
        <%=Html.ActionLink("[Delete]", "Delete", "Comment", new { id = item.CommentId }, null)%>
        <b>
            <%= Membership.GetUser(item.UserId, false).UserName %></b>[<%= item.CreateDate.ToString("G") %>]
        say:
        <br />
        <%= Html.Encode(item.Content) %>
    </li>
    <% } %>
</ul>
